<%@ page language="java" import="java.util.*" import="com.gxuwz.medical.domain.chronicdis.*" import="com.gxuwz.medical.domain.prove.*" import="com.gxuwz.medical.domain.person.*" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/medical/css/pintuer.css">
<link rel="stylesheet" href="/medical/css/admin.css">
<script src="/medical/js/jquery-1.4.4.min.js"></script>
<script src="/medical/js/pintuer.js"></script>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String idcard=request.getParameter("idcard");
String ybcardno=request.getParameter("ybcardno");
Person person = new Person();
person.setYbcardno(ybcardno);
person = person.query();
Chronicdis chronicdis = new Chronicdis();
List chronicdisList = chronicdis.queryAll();
%>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加慢性病</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="<%=path %>/system/ProveServlet?method=add">  
	
	<div class="form-group">
        <div class="label">
          <label>医疗卡号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=person.getYbcardno() %>" name="ybcardno" data-validate="required:请输入医疗卡号" readonly />
	    </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>身份证号：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=person.getIdcard() %>" name="idcard" data-validate="required:请输入身份证号" readonly />
	    </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>姓名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="<%=person.getFullname() %>" name="fullname" data-validate="required:请输入姓名" readonly />
	    </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>登记慢性病：</label>
        </div>
        <div class="field">
          <select name="illname" required>
         	<%
         	if(chronicdisList!=null)
         		for(int i=0;i<chronicdisList.size();i++){
         			chronicdis = (Chronicdis)chronicdisList.get(i);
         	 %>
         	 		<option value="<%=chronicdis.getIllname()%>"><%=chronicdis.getIllname()%></option>
         	 <%}%>
        </select>
	    </div>
      </div>
      
      <div class="form-group">
        <div class="label">
          <label>有效期：</label>
        </div>
        <div class="field">
          <select name="time" required>
         	<option  value="1" selected="selected">一年</option>
         	<option  value="3" >三年</option>
         	<option  value="5" >五年</option>
        </select>
	    </div>
      </div>

      
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
      
    </form>
  </div>
</div>

</body></html>